<el-form ref="form" :model="form" :rules="rules" label-width="140px">
    <el-row :gutter="10">
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="创建人" prop="GWALORIU_NAME">
                <el-input v-model="form.GWALORIU_NAME" readonly></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="联系方式">
                <el-input v-model="form.MOBILE" readonly></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="创建时间" prop="GWALDATE">
                <el-date-picker
                        v-model="form.GWALDATE"
                        type="date"
                        value-format="yyyy-MM-dd"
                        style="width:100%;" disabled>
                </el-date-picker>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="所属组织" prop="GWALORIG_NAME">
                <el-input v-model="form.GWALORIG_NAME" readonly></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="交易对象" prop="GWAL001">
                <el-input v-model="form.GWAKL004" readOnly clearable :disabled="!isAdd" @clear="clearGwal001">
                    <i v-show="isAdd" class="el-icon-search el-input__icon" @click="openKh" slot="suffix">
                    </i>
                </el-input>
            </el-form-item>
        </el-col>
        <!--<el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="序号" prop="GWAL002">
                <el-input v-model="form.GWAL002" readOnly></el-input>
            </el-form-item>
        </el-col>-->
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="地址类型" prop="GWAL003">
                <el-select v-model="form.GWAL003" clearable>
                    <el-option v-for="item in selectOptions.gwal003Options" :label="item.value" :value="item.code"></el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="联系人" prop="GWAL021">
                <el-input v-model="form.GWAL021"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="职务">
                <el-input v-model="form.GWAL022"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="上级领导">
                <el-input v-model="form.GWAL023" readOnly clearable>
                    <i v-show="isAdd" class="el-icon-search el-input__icon" @click="openGwal023" slot="suffix">
                    </i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="联系人电话" prop="GWAL020">
                <el-input v-model="form.GWAL020" @blur="changeGwal020"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="生日">
                <el-date-picker
                        v-model="form.GWAL024"
                        type="date"
                        value-format="yyyy-MM-dd"
                        style="width:100%;">
                </el-date-picker>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="爱好" prop="GWAL025">
                <el-input v-model="form.GWAL025"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="邮编" prop="GWAL019">
                <el-input v-model="form.GWAL019" @blur="changeGwal019"></el-input>
            </el-form-item>
        </el-col>
        <!--<el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="洲别" prop="GWAL010">
                <el-select v-model="form.GWAL010" placeholder="请选择洲别">
                    <el-option v-for="item in selectOptions.gwal010Options"
                               :key="item.GWAD002"
                               :label="item.GWADL004"
                               :value="item.GWAD002">
                    </el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="国别" prop="GWAL011">
                <el-select v-model="form.GWAL011" placeholder="请选择">
                    <el-option v-for="item in selectOptions.gwal011Options"
                               :key="item.GWAD002"
                               :label="item.GWADL004"
                               :value="item.GWAD002">
                    </el-option>
                </el-select>
            </el-form-item>
        </el-col>-->
        <!--<el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="区域" prop="GWAL012">
                <el-select v-model="form.GWAL012" placeholder="请选择">
                    <el-option v-for="item in selectOptions.gwal012Options"
                               :key="item.GWAD002"
                               :label="item.GWADL004"
                               :value="item.GWAD002">
                    </el-option>
                </el-select>
            </el-form-item>
        </el-col>-->
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="省/市" prop="GWAL013">
                <el-select v-model="form.GWAL013" placeholder="请选择" @change="changeGwal013" clearable>
                    <el-option v-for="item in selectOptions.gwal013Options"
                               :key="item.GWAD002"
                               :label="item.GWADL004"
                               :value="item.GWAD002">
                    </el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="市/区" prop="GWAL014">
                <el-select v-model="form.GWAL014" placeholder="请选择" @change="changeGwal014" clearable>
                    <el-option v-for="item in selectOptions.gwal014Options"
                               :key="item.GWAD002"
                               :label="item.GWADL004"
                               :value="item.GWAD002">
                    </el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="县/区" prop="GWAL015">
                <el-select v-model="form.GWAL015" placeholder="请选择" @change="changeGwal015" clearable>
                    <el-option v-for="item in selectOptions.gwal015Options"
                               :key="item.GWAD002"
                               :label="item.GWADL004"
                               :value="item.GWAD002">
                    </el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="乡/镇">
                <el-select v-model="form.GWAL016" placeholder="请选择" @change="changeGwal016" clearable>
                    <el-option v-for="item in selectOptions.gwal016Options"
                               :key="item.GWAD002"
                               :label="item.GWADL004"
                               :value="item.GWAD002">
                    </el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="街道/村">
                <el-select v-model="form.GWAL017" placeholder="请选择" @change="changeGwal017" clearable>
                    <el-option v-for="item in selectOptions.gwal017Options"
                               :key="item.GWAD002"
                               :label="item.GWADL004"
                               :value="item.GWAD002">
                    </el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <!--<el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="有效否" prop="GWALACTI">
                <el-select v-model="form.GWALACTI" placeholder="请选择" clearable>
                    <el-option v-for="item in selectOptions.sys_y_n" :label="item.value" :value="item.code"></el-option>
                </el-select>
            </el-form-item>
        </el-col>-->
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
            <el-form-item label="详细地址" prop="GWAL018">
                <el-input v-model="form.GWAL018"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
            <el-form-item label="备注">
                <el-input v-model="form.GWAL016"></el-input>
            </el-form-item>
        </el-col>

        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" style="text-align: right">
            <el-button icon="icon iconfont icon-23" size="mini" @click="cancel">关闭</el-button>
            <el-button v-show="!isDetail" type="warning" icon="icon iconfont icon-21" size="mini" @click="sure">保存</el-button>
        </el-col>
    </el-row>
</el-form>
<script>
    require(["pc/crm/gwai300_detail_edit"], $.noop);
</script>
